package com.kemai.designmode.decorator

import com.kemai.designmode.entry.Bag

/**

 *@description:装饰器父类
 * @author: zhaoshanshan
 * @date: 2022/10/3 7:13 下午

 */
open class BagDecorator():Bag{
    private var bag:Bag? = null
    constructor(bag:Bag):this(){
       this.bag = bag
    }

    override fun pack() {
        bag?.pack()
    }
}